<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head th:replace="admin/_fragment :: head(~{::title})">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width , initial-scale=1.0">
    <title>博客管理</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../../static/css/me.css">
</head>
<body>
<!--&lt;!&ndash;导航&ndash;&gt;-->
<!--<nav class="ui inverted attached segment m-padded-tb-mini m-shadow-small">-->
<!--    <div class="ui container">-->
<!--        <div class="ui inverted secondary stackable menu " content="">-->
<!--             <h2 class="ui teal header item">博客管理</h2>-->
<!--           <div class="right m-item menu">-->
<!--                <div class="ui dropdown item">-->
<!--                    <div class="text">-->
<!--                        <img src="../../static/jpg/headpic2.jpg" alt="" class="ui avatar image">-->
<!--                        胡文昊-->
<!--                    </div>-->
<!--                    <i class="icon dropdown"></i>-->
<!--                    <div class="menu">-->
<!--                        <a href="#" class="item">注销</a>-->
<!--                    </div>-->
<!--                </div>-->
<!--           </div>-->
<!--        </div>-->
<!--    </div>-->
<!--    <a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show">-->
<!--        <i class="sidebar icon"></i>-->
<!--    </a>-->
<!--</nav>-->
<!--二级导航-->
<div class="ui menu attached pointing">
    <div class="ui container">
        <div class="right menu">
            <a href="#" class="item">发布</a>
            <a href="#" class="active item">列表</a>
        </div>
    </div>
</div>
<!--中间部分-->
<div class="m-container-small m-padded-tb-big">
    <div class="ui container">
<!--        搜索-->
<!--        <div class="ui secondary segment form">-->
<!--            <input type="hidden" name="page">-->
<!--            <input type="hidden" name="typeId" >-->
<!--            <div class="inline fields">-->
<!--                <div class="field">-->
<!--                    <input type="text"placeholder="标题" name="title">-->
<!--                </div>-->
<!--                <div class="field">-->
<!--                    <button type="button" id="search-btn" class="ui teal basic button mini"><i class="icon search"></i>搜索</button>-->
<!--                </div>-->
<!--            </div>-->
<!--        </div>-->
<!--        表格-->
        <div id="table-container">
            <table th:fragment="blogList" class="ui compact teal table">
                <thead>
                <tr>
                    <th>id</th>
                    <th>标题</th>
                    <th></th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="blog,iterator : ${blog}">
                    <td th:text="${blog.id}">1</td>
                    <td th:text="${blog.title}">刻意练习清单</td>
                    <td>
                        <a href="#" th:href="@{/admin/blogs/{id}/input(id=${blog.id})}" class="ui mini teal basic button">编辑</a>
                        <a href="#" th:href="@{/admin/blogs/{id}/delete(id=${blog.id})}" class="ui mini red basic button">删除</a>
                    </td>
                </tr>
                </tbody>
                <tfoot>
                <tr>
                    <th colspan="7">
<!--                        <div class="ui mini pagination menu" th:if="${page.pages}>1" >-->
<!--                            <a  th:attr="data-page=${page.current}-1" class="item" th:href="@{/admin/blogs/{list}(list=${page.current}-1)}" th:unless="${1}">上一页</a>-->
<!--                            <a  th:attr="data-page=${page.current}+1" class=" item" th:href="@{/admin/blogs/{list}(list=${page.current}+1)}">下一页</a>-->
<!--                        </div>-->
                        <a href="#" th:href="@{/admin/inputs}" class="ui mini right floated teal basic button">新增</a>
                    </th>
                </tr>
                </tfoot>
            </table>
        </div>
        <div id="table2-container">
            <table th:fragment="wechatList" class="ui compact teal table">
                <thead>
                <tr>
                    <th>标题</th>
                    <th>href</th>
                    <th></th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="wechat,iterStat : ${wechat}">
                    <td th:text="${wechat.ytitle}" style="overflow-x:auto;">刻意练习清单</td>
                    <td th:text="${wechat.yhref}" style="overflow-x:hidden;">刻意练习清单</td>
                    <td>
                        <a href="#" th:href="@{/admin/wechat/{id}/input(id=${wechat.yid})}" class="ui mini teal basic button">编辑</a>
                        <a href="#" th:href="@{/admin/wechat/{id}/delete(id=${wechat.yid})}" class="ui mini red basic button">删除</a>
                    </td>
                </tr>
                </tbody>
                <tfoot>
                <tr>
                    <th colspan="7">
<!--                              <div class="ui mini pagination menu" th:if="${page}>1" >-->
<!--                               <a onclick="page(this)" th:attr="data-page=${page}-1" class="item" th:unless="${page.first}">上一页</a>-->
<!--                               <a onclick="page(this)" th:attr="data-page=${page}+1" class=" item" th:unless="${page.last}">下一页</a>-->
<!--                              </div>-->
                        <a href="#" th:href="@{/admin/wechat/inputs}" class="ui mini right floated teal basic button">新增</a>
                    </th>
                </tr>
                </tfoot>
            </table>
        </div>
    </div>
</div>
<br><br><br><br><br><br><br><br><br><br>
<!--                footer-->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
<script>


</script>
</body>
</html>